package com.tanhua.server.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.tanhua.model.vo.HuanXinUserVO;
import com.tanhua.server.service.HuanXinService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Xiao
 * @version 1.0
 * @description 环信Controller
 * @date 2021/10/30
 */
@RestController
@RequestMapping("huanxin")
@Slf4j
public class HuanXinController {
    @Autowired
    private HuanXinService huanXinService;

    /**
     * 环信-用户信息
     * @return
     */
    @GetMapping("/user")
    public ResponseEntity user() {
        HuanXinUserVO huanXinUserVO = huanXinService.user();
        return ResponseEntity.ok(huanXinUserVO);
    }
}
